import Vue from 'vue';
// 弹窗确定
const bconfirm = (str, title, type) => new Promise((resolve, reject) => {
    Vue.prototype.$confirm(str, title, { 
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        cancelButtonClass: "theme-btn-hollow",
        confirmButtonClass: "theme-btn-solid",
        type: type || 'warning'
    }).then(res => {
        resolve(res)
    }).catch(err => reject(err))
})

export default {
    bconfirm
}